package cn.stronglink.asset.module.dam.service;

import org.springframework.stereotype.Service;
import cn.stronglink.asset.module.dam.entity.message.MsgSensorTypeSetting;
import cn.stronglink.asset.module.dam.entity.message.basicMsg.DamMqMessage;
import cn.stronglink.asset.module.dam.entity.message.secondMsg.AwsPostdataSensorTypeSetting;
import cn.stronglink.asset.module.dam.interfaces.CommandStrategyI;
import cn.stronglink.asset.module.dam.utils.factorys.req.Factory444SetSensorType;

@Service("setSensorTypeService")
public class ScreenReqSetSensorTypeService implements CommandStrategyI  {

	/**
	 * "actioncode":"screenRequest"
	 */

	public void handleDamDatas(DamMqMessage msgScreenCommand){
		
	
		// 命令3-->333： 设置传感器类型
		int[] sensorTypes= {2,2,2,  2,2,2,2};
		
		Factory444SetSensorType.setSensorType(sensorTypes);
	}

	public boolean isHandle(int screenId) {
		//命令3-->333：  设置传感器类型
		if(screenId==333)return true;
		else 		   return false;
	}
}
